#!/bin/bash

CR="$(printf '\r')"
# CR=""

while read zeile; do
  if [ "$zeile" = "$CR" ]; then
    break
  fi
done

printf '%s\r\n' "HTTP/1.1 200 OK" "Content-Type: text/html" ""

echo "<!DOCTYPE HTML>
<html>
  <head><title>Versuch</title></head>
  <body><h1>Hallo Mars!</h1></body>
</html>
"

exit 0
